package com.park.service.impl;

import com.park.bean.Attracts;
import com.park.bean.AttractsType;
import com.park.dao.IAttractsDao;
import com.park.service.IAttractsService;
import com.park.util.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AttractsServiceImpl implements IAttractsService {

    @Autowired
    IAttractsDao dao;
    @Override
    public List<Attracts> getAttracts(Attracts attracts, Page page) {
        System.out.println("getAttractsService---------");
        return dao.getAttracts(attracts,page);

    }

    @Override
    public int getCount(Attracts attracts) {
        return dao.getCount(attracts);
    }

    @Override
    public List<AttractsType> getAttractsType() {
        return dao.getAttractsType();
    }

    @Override
    public int postAttracts(Attracts attracts) {
        return dao.postAttracts(attracts);
    }

    @Override
    public int delAttracts(int id) {
        return dao.delAttracts(id);
    }

    @Override
    public int editAttracts(Attracts attracts) {
        return dao.editAttracts(attracts);
    }
}
